package com.gin.kotlin.gf2gamecommunity.pagingsource

import com.gin.kotlin.form.SearchForm
import com.gin.kotlin.gf2gamecommunity.app.App
import com.gin.kotlin.response.ListData
import com.gin.kotlin.response.topic.TopicInfo

class SearchTopicPagingSource(private val keyword: String) : AbstractListDataPagingSource<TopicInfo, ListData<TopicInfo>>() {
    override fun request(page: Int, size: Int) =
        App.INSTANCE.api.searchApi.getSearchTopic(SearchForm(1, page, size, keyword))

    companion object {
        private val TAG = SearchTopicPagingSource::class.java.simpleName
    }
}